package com.example.demo.controll;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2023-08-10
 * Time:16:10
 */
@RestController
@RequestMapping("/art")
public class ArticelController {

    @RequestMapping("/hi")
    public String sayHi(){
        System.out.println("执行了saiHi方法");
        return "Hi world";
    }

    @RequestMapping("/hello")
    public String sayHello(){
        System.out.println("执行了saiHello方法");
        return "hello world";
    }
}
